package org.lmind.example.common.web.jsp.tag;

import org.lmind.example.common.web.ApplicationContext;

public class Functions {
	
	private static ApplicationContext context;
	
	public static void setApplicationContext(ApplicationContext applicationContext) {
		context = applicationContext;
	}
	
	public static String res(String value) {
		return context.getUrlResolver().resolveUrl(value);
	}
	
	public static String url(String value) {
		return context.getUrlResolver().resolveUrl(value);
	}
}
